package main

import (
	"fmt"
	"strings"
)

func main() {
	var s1 string
	fmt.Scan(&s1)
	s1 = strings.ToLower(s1)
	s2 := ""
	for _, v := range s1 {
		if (v >= 49 && v <= 57) || (v >= 65 && v <= 90) || (v >= 97 && v <= 122) {
			s2 = s2 + string(v)
		}
	}
	len1 := len(s2)
	flag := 1
	for i := 0; i < len1/2; i++ {
		if s2[i] != s2[len1-1-i] {
			flag = 0
			fmt.Println("不是回文")
			break
		}
	}
	if flag == 1 {
		fmt.Println("是回文")
	}
}
